package com.ruikc.study.demo.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;


/**
 * 供货商表，存储供货商的相关信息 实体类。
 *
 * @author zhiyuan
 * @since 2025-02-22
 */
@Table("supplier")
public class Supplier implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 供货商的唯一标识符，自增主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer supplierId;

    /**
     * 供货商编号
     */
    private String supplierCode;

    /**
     * 供货商名称
     */
    private String title;

    /**
     * 供货商联系人
     */
    private String contact;

    /**
     * 供货商联系电话
     */
    private String phone;

    /**
     * 供货商联系地址
     */
    private String address;

    /**
     * 供货商记录的创建时间
     */
    private String createdAt;

    /**
     * 供货商记录的更新时间
     */
    private String updatedAt;

    /**
     * 供货商记录的删除时间，若未删除则为空
     */
    private String deletedAt;

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(String deletedAt) {
        this.deletedAt = deletedAt;
    }

}
